package org.csu.sei.entity.DTO;

import lombok.Data;
import org.csu.sei.entity.TeacherInfo;

@Data
public class FrontTeacherInfoItemDTO {
    private Long tid;
    private String name;
    private String img;

    public FrontTeacherInfoItemDTO(){}
    public FrontTeacherInfoItemDTO(TeacherInfo teacherInfo){
        this.tid = teacherInfo.getId();
        this.name = teacherInfo.getName();
        this.img = teacherInfo.getImg();
    }

    public static FrontTeacherInfoItemDTO returnFrontTeacherInfoItem(TeacherInfo teacherInfo){
        return new FrontTeacherInfoItemDTO(teacherInfo);
    }

}
